<?php

namespace common\models;
use common\models\base\UploadFile as Base;
use Yii;

/**
 * This is the model class for table "upload_file".
 *
 * @property integer $id
 * @property string $filename
 */
class UploadFile extends Base
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'upload_file';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['filename'], 'required'],
            [['filename'], 'string', 'max' => 1024],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'filename' => 'Filename',
        ];
    }
}
